package com.tsd.jxc.stock.entity;

import com.alibaba.fastjson.JSON;
import com.tsd.core.utils.DoubleUtil;
import com.tsd.core.utils.HlpUtils;
import com.tsd.core.utils.ListUtil;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * 调拨单商品清单扩展
 *
 * @author Hillpool
 * @date 2022/12/12 11:32:10
 */
@ApiModel(description = "调拨单商品清单扩展")
public class JxcStockTransferItemExt extends JxcStockTransferItem implements Serializable {

    private String transfer_code;
    private String goods_code;
    private String goods_name;
    private String goods_spec;
    private String goods_model;
    private List<String> transfer_list;

    public String getTransfer_code() {
        return transfer_code;
    }

    public void setTransfer_code(String transfer_code) {
        this.transfer_code = transfer_code;
    }

    public String getGoods_code() {
        return goods_code;
    }

    public void setGoods_code(String goods_code) {
        this.goods_code = goods_code;
    }

    public String getGoods_name() {
        return goods_name;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public String getGoods_spec() {
        return goods_spec;
    }

    public void setGoods_spec(String goods_spec) {
        this.goods_spec = goods_spec;
    }

    public String getGoods_model() {
        return goods_model;
    }

    public void setGoods_model(String goods_model) {
        this.goods_model = goods_model;
    }

    public List<String> getTransfer_list() {
        return transfer_list;
    }

    public void setTransfer_list(List<String> transfer_list) {
        this.transfer_list = transfer_list;
    }

    public JxcStockInbillItemExt genInBillItem() {
        JxcStockInbillItemExt itemExt = new JxcStockInbillItemExt();
        itemExt.setGoods_sid(this.getGoods_sid());
        itemExt.setPrice(this.getPrice());
        itemExt.setIn_qty(this.getQty());
        itemExt.setAmount(this.getAmount());
        itemExt.setUnit_name(this.getPackage_unit());
        itemExt.setGoods_name(this.getGoods_name());
        itemExt.setSn(this.getSn());
        return itemExt;
    }

    public JxcStockOutbillItemExt genOutBillItem() {
        JxcStockOutbillItemExt itemExt = new JxcStockOutbillItemExt();
        itemExt.setGoods_sid(this.getGoods_sid());
        itemExt.setPrice(this.getPrice());
        itemExt.setOut_qty(this.getQty());
        itemExt.setAmount(this.getAmount());
        itemExt.setUnit_name(this.getPackage_unit());
        itemExt.setGoods_name(this.getGoods_name());
        itemExt.setGoods_spec(this.getGoods_spec());
        itemExt.setSn(this.getSn());
        return itemExt;
    }

}
